home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus Special 26 / AMIGAplus Sonderheft 26 (2000)(Falke)(DE)(Track 1 of 2)[!].iso / Tools / Packer / PPCUnACE / Src / globals.c < prev    next >
C/C++ Source or Header  |  1999-03-29  |  2KB  |  81 lines

  1. /* ------------------------------------------------------------------------ */
  2. /*                                                                          */
  3. /*      Global variable declarations                                        */
  4. /*                                                                          */
  5. /* ------------------------------------------------------------------------ */
  6.  
  7. #include "os.h"
  8.  
  9. #include "acestruc.h"
  10. #include "unace.h"
  11.  
  12.  
  13. //-------- Ace sign
  14. const char *acesign = "**ACE**";
  15.  
  16. //-------- Version string for program
  17. const char *version="UNACE v1.2    public version\n";
  18.  
  19. #ifdef AMIGA
  20. //-------- Version string for VERSION program
  21. const char *_version="$VER: Unace Amiga 1.2  "__AMIGADATE__"\n\n";
  22. #endif
  23.  
  24. //-------- header buffer and pointers
  25. thead head;
  26.  
  27. tmhead *t_mhead = (tmhead *) & head;
  28. tfhead *t_fhead = (tfhead *) & head;
  29.  
  30. //-------- buffers
  31. ULONG *buf_rd        =0;
  32. CHAR  *buf           =0;
  33. CHAR  *buf_wr        =0;
  34. UCHAR *readbuf       =0;
  35.  
  36. //-------- decompressor variables
  37. SHORT rpos           =0,
  38.       dcpr_do        =0,
  39.       dcpr_do_max    =0,
  40.       blocksize      =0,
  41.       dcpr_dic       =0,
  42.       dcpr_oldnum    =0,
  43.       bits_rd        =0,
  44.       dcpr_frst_file =0;
  45. USHORT dcpr_code_mn[1 << maxwd_mn],
  46.        dcpr_code_lg[1 << maxwd_lg];
  47. UCHAR dcpr_wd_mn[maxcode + 2],
  48.       dcpr_wd_lg[maxcode + 2],
  49.       wd_svwd[svwd_cnt];
  50. ULONG dcpr_dpos      =0,
  51.       cpr_dpos2      =0,
  52.       dcpr_dicsiz    =0,
  53.       dcpr_dican     =0,
  54.       dcpr_size      =0,
  55.       dcpr_olddist[4]={0,0,0,0},
  56.       code_rd        =0;
  57.  
  58. CHAR *dcpr_text      =0;
  59.  
  60. //-------- quicksort
  61. USHORT sort_org[maxcode + 2];
  62. UCHAR sort_freq[(maxcode + 2) * 2];
  63.  
  64. //-------- file handling
  65. CHAR aname[PATH_MAX];
  66. INT  archan,
  67.      wrhan;
  68. LONG skipsize=0;
  69.  
  70. //-------- structures for archive handling
  71. struct tadat adat;
  72.  
  73. //-------- flags
  74. INT  f_err      =0,
  75.      f_err_crc  =0,
  76.      f_ovrall   =0,
  77.      f_allvol_pr=0,
  78.      f_curpas   =0,
  79.      f_criterr  =0;
  80.  
  81.